﻿           @{
               
               var categories = Sealight.UI.WebUI.Services.ProductService.GetAllProductCategory();
           }
<select name="list_category_field" id="list_category_field" class="adminInput" multiple="multiple" style="height:250px;">
    <option value="">[ --- ]</option>
    @if (categories != null)
    {
        foreach (var cat in categories)
        {            
        <option value="@cat.id">@cat.name</option> 
          
            if (cat.childrens != null)
            {
                foreach (var child in cat.childrens)
                {                   
        <option value="@child.id">--@child.name</option>  
                }
            }
        }
    }
</select>
